package com.wpml.coupon.entity;

  

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 优惠券领取历史记录 实体类
 * @author wangpei
 * @since 2020-04-07 12:18:35
 */
@Data
@ToString
@Accessors(chain = true)
@TableName("sms_coupon_history")
public class CouponHistoryModel implements Serializable {
    private static final long serialVersionUID = -44774360789224857L;

    @TableId
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("优惠券id")
    private Long couponId;

    @ApiModelProperty("会员id")
    private Long memberId;

    @ApiModelProperty("会员名字")
    private String memberNickName;

    @ApiModelProperty("获取方式[0->后台赠送；1->主动领取]")
    private Integer getType;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("使用状态[0->未使用；1->已使用；2->已过期]")
    private Integer useType;

    @ApiModelProperty("使用时间")
    private LocalDateTime useTime;

    @ApiModelProperty("订单id")
    private Long orderId;

    @ApiModelProperty("订单号")
    private Long orderSn;


}